package org.nfyszny.zzzs.modules.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.nfyszny.zzzs.modules.entity.ZzzsRecordOfSupplyAbility;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 供货能力备案
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface ZzzsRecordOfSupplyAbilityMapper extends BaseMapper<ZzzsRecordOfSupplyAbility> {
    @Update("update zzzs_record_of_supply_ability set is_delete=#{record.isDelete}" +
            "where id=#{record.id}")
    int updateIsDeleteById(@Param("record") ZzzsRecordOfSupplyAbility record);

    @Select("select  * from zzzs_record_of_supply_ability where id=#{id}")
    ZzzsRecordOfSupplyAbility getHaveInfoById(String id);
}
